#define _CRT_SECURE_NO_WARNINGS 1
#include"list.h"
void test()
{
	SL* plist;
	plist = SlistInit();

	slistPushBack(plist, 1);
	slistPushBack(plist, 2);
	slistPushBack(plist, 3);
	slistPushBack(plist, 4);
	slistPushBack(plist, 5);

	slistPrint(plist);

	slistPopBack(plist);
	slistPopBack(plist);
	slistPopBack(plist);

	slistPrint(plist);

	slistPushFront(plist, 1);
	slistPushFront(plist, 2);
	slistPushFront(plist, 3);
	slistPushFront(plist, 4);
	slistPushFront(plist, 5);

	slistPrint(plist);

	slistPopFront(plist);
	slistPopFront(plist);

	slistPrint(plist);

	SL* pos = slistFind(plist, 3);

	slistErase(plist, pos);
	slistPrint(plist);

	pos = slistFind(plist, 2);
	slistInsert(plist, pos, 521);
	slistPrint(plist);


    slistDestroy(plist);
}
int main()
{
	test();
	return 0;
}